package com.ma.component;

import org.springframework.stereotype.Component;

/**
 * author: MaHX
 * date: 2019/5/30/12:27
 * description: 手机验证码随机生成
 **/
@Component
public class PhoneRandomBuilder {
    public static String fourRandomBuilder(){
        String result = "";
        for (int i=0;i<4;i++){
            result += Math.round(Math.random()*9);
        }
        return result;
    }
}
